package com.liqing.movecomment.exception;

public enum LdExceptionEnum {
    ADD_ERROR(500, "保存数据失败！"), UPDATE_ERROR(500, "更新数据失败！"), NULL_ERROR(500, "数据不能为空"), EXPIRE_ERROR(555, "token过期"), ERROR_TOKEN(401, "非法访问");
    private Integer code;
    private String description;

    LdExceptionEnum(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public Integer getCode() {
        return this.code;
    }

    @SuppressWarnings("all")
    public String getDescription() {
        return this.description;
    }
    //</editor-fold>
}
